package com.kaung.demo07_10基本运算符;

public class Demo11 {
    public static void main(String[] args) {
        long a = 123123123123123L;
        int b = 123;
        short c = 10;
        byte d = 8;


        //自动升为混合运算类型中最高类型如有long就变成long,有double就变成double
        //其余的整数就默认int,小数默认为double
        System.out.println(a+b+c+d);//long
        System.out.println(b+c+d);//int
        System.out.println(c+d);//int
    }
}
